//
//  BaseTableView.h
//  BasicProject
//
//  Created by 马军凯 on 2023/4/13.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface BaseTableView : UITableView
//几组
@property (nonatomic, assign) NSInteger sections;
//每组个数
@property (nonatomic, retain) NSArray<NSNumber *> *rows;
//创建cell
@property (nonatomic, copy) UITableViewCell *(^CreateCell)(NSIndexPath *indexPath);
//cell的高度
@property (nonatomic, copy) CGFloat (^CellHeight)(NSIndexPath *indexPath);
//点击cell
@property (nonatomic, copy) void (^SelectedCell)(NSIndexPath *indexPath);

//section的header
@property (nonatomic, copy) UIView *(^CreateHeader)(NSInteger section);
@property (nonatomic, copy) CGFloat (^HeaderHeight)(NSInteger section);

//section的footer
@property (nonatomic, copy) UIView *(^CreateFooter)(NSInteger section);
@property (nonatomic, copy) CGFloat (^FooterHeight)(NSInteger section);

//separnon
@property (nonatomic, copy) UIEdgeInsets (^SeparEdge)(void);

//是否允许编辑
@property (nonatomic, assign) BOOL isAllowEdit;
@property (nonatomic, copy) void (^DeleteCell)(NSIndexPath *indexPath);

@end

NS_ASSUME_NONNULL_END
